#pragma once
#ifndef CSPRITE_H_
#define CSPRITE_H_

class CSprite{
private:
	D3DXIMAGE_INFO imginfo;

public:
	D3DXMATRIX scale;
	D3DXMATRIX rot;
	D3DXMATRIX trans;
	D3DXMATRIX final;
	D3DCOLOR color;
	int imgspeed;
	int count;

	D3DXVECTOR3 center;
	LPDIRECT3DTEXTURE9 texture;
	float width;
	float height;
	int frames;
	int xtile;
	int ytile;
	float speed;
	//TODO: Tilesets

	CSprite(LPDIRECT3DDEVICE9 _device,  LPCSTR _filename, int _frames, int _speed);
	CSprite(LPDIRECT3DDEVICE9 _device,  LPCSTR _filename, D3DXVECTOR3 _transparency, int _frames, int _speed);
	CSprite(LPDIRECT3DDEVICE9 _device,  LPCSTR _filename, D3DXVECTOR3 _transparency, int _xframes, int yframes, int _speed);
	~CSprite();
};


#endif